package cn.xiaolang.function.design_pattern.duty_chain_pattern_base;

import lombok.extern.slf4j.Slf4j;

import java.util.Objects;

@Slf4j
public class WorkerFirstProcessor extends BaseProcessor {
    @Override
    void process(ProcessorContext context) {
        log.info("process ing");
        if (!Objects.isNull(next)) {
            next.process(context);
        }
    }
}
